package com.yt.product.models.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.util.Date;
import java.io.Serializable;

/**
 * 产品信息VO
 *
 * @author chen
 * @Date 2025-09-05 14:09:50
 */
@Data
public class ProductInfoVO implements Serializable {
    @ApiModelProperty(value = "产品ID")
    private Long id;
    @ApiModelProperty(value = "数据版本号（乐观锁控制）")
    private Integer revision;
    @ApiModelProperty(value = "产品名称")
    private String productName;
    @ApiModelProperty(value = "关联供应商ID（关联supplier_info.id）")
    private Long supplierId;
    @ApiModelProperty(value = "关联分类ID（关联product_category.id）")
    private Long categoryId;
    @ApiModelProperty(value = "产品状态：0-下架，1-在售")
    private Integer status;
    @ApiModelProperty(value = "产品库存数量")
    private Long stock;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    @ApiModelProperty(value = "供应商名称")
    private String supplierName;

    @ApiModelProperty(value = "分类名称")
    private String categoryName;
}
